﻿@model IEnumerable<GAE_PI.View_ActiviteEleve>

@{
    ViewBag.Title = "ActiviteEleve";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Mes activités</h2>

<table id="listGrid">
	<thead>
    <tr>
        <th></th>
        <th>
            Activités
        </th>
        <th>
            Périodes
        </th>
        <th>
            Prix
        </th>
    </tr>
	</thead>
	<tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Details", "DetailActivite", "DetailActivite", item, new { @class = "link" })
        </td>
        <td>
            @item.nomA
        </td>
        <td>
            @item.pStart au @item.pEnd
        </td>
        <td>
            @item.prix
        </td>
    </tr>
}
@Html.ActionLink("PDF", "ImprimerPDF", null,new { @class = "button" })

</tbody>
</table>
<script type="text/javascript">
    $(document).ready(function () {
        $("#listGrid").wijgrid({ allowSorting: true, allowPaging: true, pageSize: 20 });
    });
</script>

